package com.chzc.demo;

import com.chzc.server.DevilProducer;

/**
 * @author cv大魔王
 * @version 1.0
 * @date 2021/7/3 10:27
 */
public class ProducerDemo {

    public static void main(String[] args) {
        DevilProducer devilClien = new DevilProducer("127.0.0.1", 7000);
        devilClien.start();
        for (int i = 0; i < 50; i++) {
            devilClien.sendMag("pay", "Test data, middleware message"+i);
        }

        // 释放连接
//        devilClien.release();
//        devilClien.sendMag("order", "ll");
    }

}
